using System;
using SBCommon.Data;
using SBCommon.Validation;

namespace SecurityModule.Entity
{
	[Table("[SEC_Attribute]")]
    public class Attribute
    {
        int _attribute_id;
        [Column(IsPrimaryKey=true)]
        [Validator(Required = true)]
        public int attribute_id
        {
            get { return _attribute_id; }
            set { _attribute_id = value; }
        }
        
        string _attribute_type;
        [Column]
        [Validator(MaxLength = 20)]
        public string attribute_type
        {
            get { return _attribute_type; }
            set { _attribute_type = value; }
        }
        
        string _attribute_name;
        [Column]
        [Validator(MaxLength = 50 , Required = true)]
        public string attribute_name
        {
            get { return _attribute_name; }
            set { _attribute_name = value; }
        }
        
        string _data_type;
        [Column]
        [Validator(MaxLength = 50 , Required = true)]
        public string data_type
        {
            get { return _data_type; }
            set { _data_type = value; }
        }
        
        string _is_unique;
        [Column]
        [Validator(MaxLength = 1 , Required = true)]
        public string is_unique
        {
            get { return _is_unique; }
            set { _is_unique = value; }
        }
        
        string _is_required;
        [Column]
        [Validator(MaxLength = 1 , Required = true)]
        public string is_required
        {
            get { return _is_required; }
            set { _is_required = value; }
        }
        
    }
}

